#{extends 'main.html' /}
#{if event.sprint}
<h2>
	<a style ="color:#400040;" href=" @{Projects.showProject(event.sprint.project.getEntityId())}">${event.sprint.project.name}</a> > 
	<a style ="color:#400040;" href=" @{Events.showSprints(event.sprint.project.getEntityId())}">Sprints</a> > 
	<a style ="color:#400040;" href="@{Events.showSprint(event.sprint.getEntityId())}">${event.sprint.name}</a> > 
	<a style ="color:#400040;" href="@{Events.showSprintEvents(event.sprint.getEntityId())}">Events</a> > 
	<a style ="color:#400040;" href="@{Events.showSprint(event.sprint.getEntityId())}">${event.name}</a> >
	Notes
</h2><hr/>
#{/if}
#{else}
<h2>
	<a style ="color:#400040;" href="@{Projects.showProject(event.project.getEntityId())}">${event.project.name}</a> > 
	<a style ="color:#400040;" href="@{Events.showProjectEvents(event.project.getEntityId())}">Events</a> > 
	<a style ="color:#400040;" href="@{Events.showEvent(event.getEntityId())}">${event.name}</a> >
	Notes
</h2><hr/>
#{/else}
<h3>Associate Notes</h3>
#{form @Events.noteAssociate(event.getEntityId()), id:'form' }
#{if unassociatednote}
	#{list items:unassociatednote, as:'note'}
		<input name = "notelistIds" id = "notelistIds" type = "checkbox"  value = "${note.getEntityId()}" /> ${note.name}
		<br/><br/>
	#{/list}
	<input type="submit" value="Submit" />	
#{/if}
#{else}
	There are no notes in this project!!
#{/else}
#{/form}